<?php
  /*
   * Template Name: detail
   */
?>

<?php
  get_header();
?>



<div class="page2 detail">
  <div class="w1200 clearfix">
    <?php 
      $id = $_GET['post_id'];
      $post = get_post($id);
    ?>

    <div class="left">
      <div class="pro-pic">
            <?php
              if(has_post_thumbnail()) {
                the_post_thumbnail('pro');
              } else {
            ?>

            <img src="<?php bloginfo('template_url'); ?>/images/dot.jpg" alt="..." />

            <?php } ?>
       </div>
      </div>
 
    <div class="right">
        <div class="pro-params">
          <?php
           echo $post->post_content;
          ?>
        </div>

        <!-- <div class="btn-wrap">
          <div class="btn btn-radius">
            <a href="<?php  // echo get_post_meta($post->ID, 'url', true); ?>" class='link-wrap'>
              点击购买
            </a>
          </div>
        </div> -->
      </div>
  </div>
</div>

<?php
  get_footer();
?>